From: awilliam@xenbuild.aw Date: Thu, 11 May 2006 19:13:37 +0000 (-0600) Subject: [IA64] NR_hypercalls definition on IA64 X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16081 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=2871fd73684342d50d3da15f0da8d65083af15d4;p=xen.git [IA64] NR_hypercalls definition on IA64 This is a patch for NR_hypercalls definition. It effects (on IA64) 1)xenperf work 2)make perfc=y compile succeed. At this moment, xenperf@IA64 can monitor 3 counters. sched: timer sched: runs through scheduler sched: context switches This code is just moved from xen/include/asm-x86/config.h Signed-off-by: Atsushi SAKAI --- diff --git a/xen/include/asm-ia64/config.h b/xen/include/asm-ia64/config.h index 6c84da4c62..c53a7e4f6d 100644 --- a/xen/include/asm-ia64/config.h +++ b/xen/include/asm-ia64/config.h @@ -97,6 +97,13 @@ extern char _end[]; /* standard ELF symbol */ //#define HZ 1000 // FIXME SMP: leave SMP for a later time +/* A power-of-two value greater than or equal to number of hypercalls. */ +#define NR_hypercalls 64 + +#if NR_hypercalls & (NR_hypercalls - 1) +#error "NR_hypercalls must be a power-of-two value" +#endif + /////////////////////////////////////////////////////////////// // xen/include/asm/config.h // Natural boundary upon TR size to define xenheap space